<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>教师端 - 师生学习助手</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-css/layui.css">
  <link rel="stylesheet" href="../static/css/lessonPlan.css">
  <script src="../static/js/jquery.js"></script>
  <script src="../static/js/jquery.cookie.js"></script>
  <script src="../static/js/lessonPlan.js" defer></script>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f9;
      margin: 0;
      padding: 0;
    }
    #wrapper {
      display: flex;
      height: 100vh;
    }
    /* 左侧导航栏 */
    #sidebar {
      width: 280px;
      background-color: #2e3b4e;
      padding: 40px 20px;
      color: #fff;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    #sidebar ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
    }
    #sidebar li {
      padding: 18px 0;
      text-align: center;
      border-bottom: 2px solid #3c4858;
      margin-bottom: 15px;
      transition: background-color 0.3s;
    }
    #sidebar li:hover {
      background-color: #3b4b63;
      cursor: pointer;
    }
    #sidebar li a {
      text-decoration: none;
      color: #fff;
      display: block;
      font-size: 20px;
      font-weight: bold;
    }
    #sidebar li a:hover {
      color: #ff9800;
    }
    /* 右侧主内容 */
    #main-content {
      flex-grow: 1;
      padding: 40px;
      overflow-y: auto;
      background-color: #fff;
    }
    .content-section {
      display: none;
    }
    .active-section {
      display: block;
    }
    .layui-card {
      margin-bottom: 30px;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .layui-card-header {
      font-size: 22px;
      background-color: #4e5b6e;
      color: white;
      border-radius: 10px 10px 0 0;
    }
    .layui-card-body {
      padding: 30px;
    }
    .layui-btn {
      font-size: 16px;
      padding: 12px 25px;
      margin-top: 20px;
      border-radius: 8px;
      transition: background-color 0.3s;
    }
    .layui-btn:hover {
      background-color: #ff9800;
    }
  </style>
</head>
<body>

<div id="wrapper">
  <!-- 左侧导航栏 -->
  <div id="sidebar">
    <ul>
      <li><a href="#" onclick="showSection('lessonPlan')">生成教案</a></li>
      <li><a href="#" onclick="showSection('examPaper')">生成试卷</a></li>
      <li><a href="#" onclick="showSection('intelligentQuestioning')">答疑解惑</a></li>
    </ul>
  </div>

  <!-- 右侧主内容 -->
  <div id="main-content">
    <div id="lessonPlan" class="content-section active-section">
      <div class="layui-card">
        <div class="layui-card-header"><h3>生成教案</h3></div>
        <div class="layui-card-body">
          <div class="btn">
            <input type="text" value="" class="title">
            <input type="button" value="搜索" class="search">
            <input type="button" value="生成教案" class="add">
          </div>
          <table border="1">
            <thead>
            <tr>
              <th>主题</th>
              <th>创建时间</th>
              <th>操作</th>
            </tr>
            </thead>
            <tbody>
            </tbody>
          </table>
          <ul class="page">
            <li class="first">首页</li>
            <li class="prev">上一页</li>
            <li class="page_item current">1</li>
            <li class="page_item">2</li>
            <li class="page_item">3</li>
            <li class="page_item">4</li>
            <li class="next">下一页</li>
            <li class="end">尾页</li>

          </ul>
          <div id="myModal" class="modal">
            <div class="modal-content">
              <span class="close">&times;</span>
              <input type="text" id="modalInput" placeholder="请输入主题">
              <button id="confirmBtn">确定</button>
              <button id="cancelBtn">取消</button>
            </div>
          </div>


        </div>
      </div>
    </div>

    <div id="examPaper" class="content-section">
      <div class="layui-card">
        <div class="layui-card-header"><h3>生成试卷</h3></div>
        <div class="layui-card-body">
          <p>在这里，教师可以生成新的试卷。</p>
          <button class="layui-btn layui-btn-primary">生成试卷</button>
        </div>
      </div>
    </div>

    <div id="intelligentQuestioning" class="content-section">
      <div class="layui-card">
        <div class="layui-card-header"><h3>答疑解惑</h3></div>
        <div class="layui-card-body">
          <p>在这里，教师可以帮助学生解答问题。</p>
          <button class="layui-btn layui-btn-warm">开始答疑</button>
        </div>
      </div>
    </div>
  </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/layui-js/layui.all.js"></script>
<script>
  // 切换显示不同的内容部分
  function showSection(sectionId) {
    // 隐藏所有内容部分
    const sections = document.querySelectorAll('.content-section');
    sections.forEach(function(section) {
      section.classList.remove('active-section');
    });

    // 显示选中的部分
    const activeSection = document.getElementById(sectionId);
    activeSection.classList.add('active-section');
  }
</script>

</body>
</html>
